#include "CommonInstanceSet.h"

CommonInstanceSet*  g_pCommonInstanceSet = NULL;

CommonInstanceSet::CommonInstanceSet()
    :m_sAppPath(""),
    m_pSysCfg(NULL)
{  

    m_sAppPath = "./";
    m_pSysCfg = new SysCfg();

#ifdef WIN32
    m_pSysCfg->LoadFrom("C:/css/config/SysCfg.xml");
#else
    m_pSysCfg->LoadFrom("/usr/lib/css/config/SysCfg.xml");
#endif
}

CommonInstanceSet::~CommonInstanceSet()
{
    SAFE_DELETE(m_pSysCfg);
}

QString CommonInstanceSet::GetAppPath(void) const
{
    return m_sAppPath;
}

SysCfg* CommonInstanceSet::GetSysCfg() const
{
    return m_pSysCfg;
}


